﻿using System;
using System.Drawing;

namespace GridRayTracer
{
  public static class ColorExtensions
  {
    public static Color Add(this Color me, Color other)
    {
      return Color.FromArgb(me.R + other.R, me.G + other.G, me.B + other.B);
    }    
    
    public static Color Scale(this Color me, double scale) 
    {
      return Color.FromArgb((int)(me.R * scale), (int)(me.G * scale), (int)(me.B * scale));
    }
  }
}
